package test;

import comment.Comment;

/**
 *create by tbj
 */
public class MySelection {
	public static void sort(int[] a){
		int n=a.length;
		for(int i=0;i<n;i++){
			int min=i;
			for(int j=i+1;j<n;j++){
				if(a[j]<a[min]){
					min=j;
				}
			}
			Comment.swapIntArr(a, i, min);
		}
	}
	public static void main(String[] args) {
		int[] a=Comment.getSortIntArr();
		MySelection.sort(a);
		for (int i : a) {
			System.out.print(i+" ");
		}
	}
}
